home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / dsp / 96000tar.z / 96000tar / 96000 / appb / b112.asm < prev    next >
Assembly Source File  |  1992-04-28  |  1KB  |  23 lines

  1. ; This program was originally published in the Motorola DSP96002 Users Manual
  2. ; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
  3. ; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598.  For
  4. ; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
  5. ; Benchmarks.
  6. ;
  7.  ;B.1.12    Nth Order Power Series (Real)  
  8.  ;;        c = SUM (I=0,...,N) { a(I) * bI }       c = aNbN + aN-1bN-1 + ... + a1b1 + a0        
  9.  ;                                                          Program    ICycles
  10.  ;                                                          Words 
  11.     move   #baddr,r4                                            ;    1          1 
  12.     move   #aaddr,r0                                        ;    1          1 
  13.     move                                       y:(r4),d7.s  ;    1          1 
  14.     fclr   d2                     x:(r0)+,d0.s y:(r4),d6.s  ;    1          1 
  15.     do     #N,end                                           ;    2          3 
  16.     fmpy   d6,d7,d1 fadd.s d2,d0  x:(r0)+,d4.s                  ;    1          1 
  17.     fmpy.s d6,d4,d2               d1.s,d6.s                     ;    1          1 
  18. end 
  19.     fadd.s d2,d0                                               ;    1          1 
  20.  ;                                                          ;    ---        --- 
  21.  ;                                                      Totals:  9         2N+8 
  22.  ;                                                              (9         2N+8) 
  23.